﻿using System.Runtime.Serialization;

namespace EzDesk.Apps.Model.ProjectModule
{
    public partial class Workitem
    {
        [DataMember]
        public string OwnerName { get; set; }
        [DataMember]
        public string CreatorName { get; set; }
    }

    public static class WorkItemExt
    {
        public static bool IsSelfWorkitem(this Workitem source)
        {
            return source.CreatorId == source.OwnerId;
        }

    }
}
